package com.mm.domain.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mm.util.result.DBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 数据字典表
 * </p>
 *
 * @author JueDream
 * @since 2021-08-24
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Accessors(chain = true)
@TableName("d_common_code")
@ApiModel(value="DCommonCode对象", description="数据字典表")
public class DCommonCode extends DBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "c_id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "排序号")
    @TableField("c_sort")
    private Integer sort;

    @ApiModelProperty(value = "code")
    @TableField("c_code")
    private Integer code;

    @ApiModelProperty(value = "父code")
    @TableField("c_p_code")
    private Integer parentCode;

    @ApiModelProperty(value = "名称")
    @TableField("c_name")
    private String name;

    @ApiModelProperty(value = "内容")
    @TableField("c_content")
    private String content;

    @ApiModelProperty(value = "备注")
    @TableField("c_remark")
    private String remark;

}
